<?php

namespace App\Http\Controllers\Web\Seller;

use App\ConstDir\ErrorConst;
use App\Http\Controllers\Web\BaseController;
use App\Repository\Repositories\Interfaces\ShopRightMenuRepository;

/**
 * 订单管理控制器
 *
 * @package App\Http\Controllers\Backend
 */
class ShopRightMenuController extends BaseController
{
    /**
     * @var ShopRightMenuRepository
     */
    protected $shop;

    protected $sp_uid;

    public function __construct(ShopRightMenuRepository $shop)
    {
        $this->shop = $shop;
    }

    public function index()
    {
        $shops = $this->shop->with(['shopRightOperation'])->all();

        return $this->success(ErrorConst::SUCCESS_CODE_MSG, $shops['data'], true);
    }


}
